package com.zhong.bmob.model;

import cn.bmob.v3.BmobObject;

/**
 * Created by 俊峰 on 2017/5/23.
 * 聊天信息基础类
 */

public class ChatMessageBase extends BmobObject {
    private String from; //消息发送者
    private String to; //消息接受者
    private String filePath; //图片和语音的地址
    private int timeLength; //语音的时间长度
    private boolean sendOriginalImage; //是否发送原图
    private double latitude; //	纬度
    private double longitude; //经度
    private String locationAddress; //位置详情
    private String content; //文本消息的内容
    private long time; //发送消息的时间
    private int chatType; //聊天的类型（0表示单聊，1表示群聊）
    private String id; //消息的id（作为唯一主键）
    private int sendOrReceive; //发送的消息还是接收的消息（0表示接收，1表示发送）
    private int theType; //消息的类型（0表示Txt，1表示Image，2表示Voice，3表示Location）

    public int getTheType() {
        return theType;
    }

    public void setTheType(int theType) {
        this.theType = theType;
    }

    public int getSendOrReceive() {
        return sendOrReceive;
    }

    public void setSendOrReceive(int sendOrReceive) {
        this.sendOrReceive = sendOrReceive;
    }

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    public int getTimeLength() {
        return timeLength;
    }

    public void setTimeLength(int timeLength) {
        this.timeLength = timeLength;
    }

    public boolean isSendOriginalImage() {
        return sendOriginalImage;
    }

    public void setSendOriginalImage(boolean sendOriginalImage) {
        this.sendOriginalImage = sendOriginalImage;
    }

    public double getLatitude() {
        return latitude;
    }

    public void setLatitude(double latitude) {
        this.latitude = latitude;
    }

    public double getLongitude() {
        return longitude;
    }

    public void setLongitude(double longitude) {
        this.longitude = longitude;
    }

    public String getLocationAddress() {
        return locationAddress;
    }

    public void setLocationAddress(String locationAddress) {
        this.locationAddress = locationAddress;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public long getTime() {
        return time;
    }

    public void setTime(long time) {
        this.time = time;
    }

    public int getChatType() {
        return chatType;
    }

    public void setChatType(int chatType) {
        this.chatType = chatType;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTo() {
        return to;
    }

    public void setTo(String to) {
        this.to = to;
    }

    public String getFrom() {
        return from;
    }

    public void setFrom(String from) {
        this.from = from;
    }
}
